package cn.getech.data.development.mapper;

import cn.getech.data.development.entity.TableFieldRules;
import cn.getech.system.center.model.dto.RoleRowDataPermissionDto;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 表行规则信息 Mapper 接口
 * </p>
 *
 * @author hujz
 * @since 2019-12-18
 */
@Mapper
public interface TableFieldRulesMapper extends BaseMapper<TableFieldRules> {

    RoleRowDataPermissionDto selectRoleRowDataPermissionDtoById(@Param("tableFieldRulesId") Integer tableFieldRulesId);

    List<RoleRowDataPermissionDto> selectAllRoleRowDataPermissionDtoListByTableFieldRulesIds(@Param("tableFieldRulesIds") List<Integer> tableFieldRulesIds);

    List<TableFieldRules> getTableFieldRulesList(@Param("tableId")Integer tableId);

    List<RoleRowDataPermissionDto> selectRowData(@Param("tableId") Integer tableId,@Param("tableFieldRulesIds") List<Integer> tableFieldRulesIds);

}
